package com.dotstone.chipism.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

import com.dotstone.chipism.R;

public class BBSFragment extends Fragment {
	public static BBSFragment instance;
	private WebView webview;
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		instance = this;
		View view = inflater.inflate(R.layout.fragment_bbs, container, false);
		findView(view);
		return view;
	}

	private void findView(View view) {
		// TODO Auto-generated method stub
//		webview = (WebView) view.findViewById(R.id.webview);
//		//
//		webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
//		// 支持javascript
//		webview.getSettings().setJavaScriptEnabled(true);
//		// 设置可以支持缩放
//		webview.getSettings().setSupportZoom(true);
//		// 设置出现缩放工具
//		webview.getSettings().setBuiltInZoomControls(true);
//		// 扩大比例的缩放
//		webview.getSettings().setUseWideViewPort(true);
//		// 自适应屏幕
//		webview.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
//		webview.getSettings().setLoadWithOverviewMode(true);
//		webview.setWebViewClient(new WebViewClient());
////		webview.loadUrl("http://bbs.ofweek.com/forum-455-1.html");
//		webview.loadUrl("http://www.baidu.com");
//		webview.getSettings().setLoadWithOverviewMode(true);
	}
}
